package com.my.toolkit;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

import org.apache.commons.io.Charsets;
import org.apache.commons.io.IOUtils;

import lombok.Cleanup;

public class IOUtil {

	public static void createFile(String fileName,String content) throws FileNotFoundException, IOException {
		@Cleanup
		FileOutputStream out = new FileOutputStream(fileName);
		out.write(content.getBytes(Charsets.toCharset("UTF-8")));
	}
}
